import { Http } from '@/utils/http'

/**
 * 获取作者信息
 * @returns 
 */
export function requestAuthor ()  {
    return Http.request({
        url: '/out/author/getAuthorOrderByDynasty',
        method: 'GET'
    })
}

/**
 * 根据id获取作者及作品信息
 * @param data 
 * @returns 
 */
export function requestAuthorAndPoetryById (data: any)  {
    return Http.request({
        url: '/out/author/getAuthorAndPoetryById',
        method: 'GET',
        params: data
    })
}
